class Animal:
    name = "小鸡"
    age: int

    def __init__(self):
        # __可以避免被子类继承
        self.__age = 12
        print("父类初始化")

    def eat(self):
        print(self.name,"吃阿布")

    # 对象函数变为类函数
    @classmethod
    def piss(self):
        print("袅袅")


class Cat(Animal):
    sex: int

    def p(self):
        print("名字",self.name)